{
    "header": "0x00000003",
    "target": "app2dev",
    "config": {
        "udp_port": 12414,
        "udp_address": "255.255.255.255",
        "udp_notify_port": 2415,
        "tcp_port": 12416
    },
    "commands": {
        "onboarding": {
            "cmd": "0x0001",
            "udp": true,
            "props": [
                {
                    "name": "ssid",
                    "dynamic": true,
                    "type": "string"
                },
                {
                    "name": "password",
                    "dynamic": true,
                    "type": "string"
                }
            ]
        },
        "onboarding_response": {
            "cmd": "0x0002",
            "udp": true
        },
        "discovery": {
            "cmd": "0x0003",
            "udp": true
        },
        "discovery_response": {
            "cmd": "0x0004",
            "udp": true,
            "props": [
                {
                    "name": "did",
                    "dynamic": true,
                    "type": "string"
                },
                {
                    "name": "mac",
                    "dynamic": true,
                    "type": "hex"
                },
                {
                    "name": "firmware_version",
                    "dynamic": true,
                    "type": "string"
                },
                {
                    "name": "product_key",
                    "dynamic": true,
                    "optional": true,
                    "type": "string"
                }
            ]
        },
        "device_booted": {
            "cmd": "0x0005",
            "props": [
                {
                    "name": "did",
                    "dynamic": true,
                    "type": "string"
                },
                {
                    "name": "mac",
                    "dynamic": true,
                    "type": "hex"
                },
                {
                    "name": "firmware_version",
                    "dynamic": true,
                    "type": "string"
                },
                {
                    "name": "product_key",
                    "dynamic": true,
                    "optional": true,
                    "type": "string"
                }
            ]
        },
        "passcode": {
            "cmd": "0x0006"
        },
        "passcode_response": {
            "cmd": "0x0007",
            "props": [
                {
                    "name": "result",
                    "type": "UInt8",
                    "optional": true
                },
                {
                    "name": "passcode",
                    "dynamic": true,
                    "optional": true,
                    "type": "string"
                }
            ]
        },
        "auth": {
            "cmd": "0x0008",
            "props": [
                {
                    "name": "passcode",
                    "dynamic": true,
                    "type": "string"
                }
            ]
        },
        "auth_response": {
            "cmd": "0x0009",
            "props": [
                {
                    "name": "result",
                    "type": "UInt8"
                }
            ]
        },
        "control": {
            "cmd": "0x0090",
            "secure": true,
            "props": [
                {
                    "name": "data",
                    "type": "p0"
                }
            ]
        },
        "control_response": {
            "cmd": "0x0091",
            "props": [
                {
                    "name": "data",
                    "type": "p0"
                }
            ]
        },
        "ap_list": {
            "cmd": "0x000C"
        },
        "ap_list_response": {
            "cmd": "0x000D",
            "props": [
                {
                    "name": "ap_list",
                    "type": "array",
                    "props": [
                        {
                            "name": "ssid",
                            "dynamic": true,
                            "type": "string"
                        },
                        {
                            "name": "signal_strength",
                            "type": "UInt8"
                        }
                    ]
                }
            ]
        },
        "setting": {
            "cmd": "0x000E",
            "props": [
                {
                    "name": "bps",
                    "type": "UInt32"
                },
                {
                    "name": "stop_bit",
                    "type": "UInt8"
                },
                {
                    "name": "data_length",
                    "type": "UInt8"
                },
                {
                    "name": "parity",
                    "type": "UInt8"
                },
                {
                    "name": "flow_control",
                    "type": "UInt8"
                }
            ]
        },
        "setting_response": {
            "cmd": "0x000F",
            "props": [
                {
                    "name": "result",
                    "type": "UInt8"
                }
            ]
        },
        "logging": {
            "cmd": "0x0010",
            "props": [
                {
                    "name": "value1",
                    "type": "UInt8"
                },
                {
                    "name": "value2",
                    "type": "UInt8"
                }
            ]
        },
        "logging_response": {
            "cmd": "0x0011",
            "props": [
                {
                    "name": "result",
                    "type": "UInt8"
                }
            ]
        },
        "logging_notify": {
            "cmd": "0x0012",
            "props": [
                {
                    "name": "log_level",
                    "type": "UInt8"
                },
                {
                    "name": "tag",
                    "dynamic": true,
                    "type": "string"
                },
                {
                    "name": "source",
                    "dynamic": true,
                    "type": "string"
                },
                {
                    "name": "content",
                    "type": "string",
                    "dynamic": true
                }
            ]
        },
        "device_info": {
            "cmd": "0x0013"
        },
        "device_info_response": {
            "cmd": "0x0014",
            "props": [
                {
                    "name": "wifi_hardware_version",
                    "type": "string",
                    "fixed_length": 8
                },
                {
                    "name": "wifi_software_version",
                    "type": "string",
                    "fixed_length": 8
                },
                {
                    "name": "mcu_hardware_version",
                    "type": "string",
                    "fixed_length": 8
                },
                {
                    "name": "mcu_software_version",
                    "type": "string",
                    "fixed_length": 8
                },
                {
                    "name": "p0_version",
                    "type": "string",
                    "fixed_length": 8
                },
                {
                    "name": "firmware_id",
                    "type": "int",
                    "fixed_length": 8
                },
                {
                    "name": "firmware_version",
                    "dynamic": true,
                    "type": "string"
                },
                {
                    "name": "product_key",
                    "dynamic": true,
                    "type": "string"
                }
            ]
        },
        "heart_beat": {
            "cmd": "0x0015"
        },
        "heart_beat_response": {
            "cmd": "0x0016"
        }
    }
}
